package 圆和圆柱;

public class Cylinder {

    public double r;
    public double height;

    public double getR() {
        return r;
    }

    public void setR(double r) {
        this.r = r;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public double findVolume() {
        double s = 3.14 * r * r * height;
        return s;

    }
}